﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MyMaster.master" AutoEventWireup="true" CodeFile="DangNhap.aspx.cs" Inherits="DangNhap" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <center>
        <br />
        <asp:Panel ID="Panel1" runat="server" GroupingText="Thông tin đăng nhập" Width="400px">
            <table cellpadding="4" cellspacing="0" style="width: 100%; text-align: left;">
                <tr>
                    <td width="40%">Tên đăng nhập:</td>
                    <td>
                        <asp:TextBox ID="txtTenDangNhap" runat="server" Width="70%"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                            ControlToValidate="txtTenDangNhap" ErrorMessage="(*)" 
                            ToolTip="Vui lòng nhập tên đăng nhập" ValidationGroup="reg">*
                        </asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>Mật khẩu:</td>
                    <td>
                        <asp:TextBox ID="txtMatKhau" runat="server" TextMode="Password" Width="70%"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                            ControlToValidate="txtMatKhau" ErrorMessage="(*)" 
                            ToolTip="Vui lòng nhập mật khẩu" ValidationGroup="reg">*
                        </asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:CheckBox ID="ckbRememberMe" runat="server" Text="Duy trì đăng nhập" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align: center">
                        <asp:Button ID="btnDangNhap" runat="server"
                                    Text="Đăng nhập" 
                                    onclick="LoginButton_Click" />
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </center>
</asp:Content>

